package com.cp.admin.modular.user.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * vip信息表
 * </p>
 *
 * @author lkaeiou123
 * @since 2020-08-25
 */
@TableName("vip")
public class Vip extends Model<Vip> {

    private static final long serialVersionUID = 1L;

    /**
     * vip id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 充值次数
     */
    @TableField("order_times")
    private Integer orderTimes;
    /**
     * 剩余天数
     */
    @TableField("remaining_days")
    private Integer remainingDays;
    /**
     * vip累计领取豌豆颗数
     */
    @TableField("get_peas")
    private BigDecimal getPeas;
    /**
     * 今日领取豌豆颗数
     */
    @TableField("get_peas_today")
    private BigDecimal getPeasToday;
    /**
     * 当日领取状态 0未领取 1已领取
     */
    @TableField("get_peas_status")
    private Integer getPeasStatus;
    /**
     * 0非vip 1vip中 -1vip已过期
     */
    private Integer status;
    /**
     * 充值时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * vip到期时间
     */
    @TableField("expire_time")
    private Date expireTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getOrderTimes() {
        return orderTimes;
    }

    public void setOrderTimes(Integer orderTimes) {
        this.orderTimes = orderTimes;
    }

    public Integer getRemainingDays() {
        return remainingDays;
    }

    public void setRemainingDays(Integer remainingDays) {
        this.remainingDays = remainingDays;
    }

    public BigDecimal getGetPeas() {
        return getPeas;
    }

    public void setGetPeas(BigDecimal getPeas) {
        this.getPeas = getPeas;
    }

    public BigDecimal getGetPeasToday() {
        return getPeasToday;
    }

    public void setGetPeasToday(BigDecimal getPeasToday) {
        this.getPeasToday = getPeasToday;
    }

    public Integer getGetPeasStatus() {
        return getPeasStatus;
    }

    public void setGetPeasStatus(Integer getPeasStatus) {
        this.getPeasStatus = getPeasStatus;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Vip{" +
        "id=" + id +
        ", userId=" + userId +
        ", orderTimes=" + orderTimes +
        ", remainingDays=" + remainingDays +
        ", getPeas=" + getPeas +
        ", getPeasToday=" + getPeasToday +
        ", getPeasStatus=" + getPeasStatus +
        ", status=" + status +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", expireTime=" + expireTime +
        "}";
    }
}
